//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package messages;

import common.AvatarInfoListEntry;
import common.ByteStream;

import java.util.ArrayList;
import java.util.List;

public class AvatarInfoListResponse extends Base {
    public static final int MsgType = 20116;
    private List<AvatarInfoListEntry> infoList = new ArrayList();

    public AvatarInfoListResponse() {
        super(20116);
    }

    public void encode(ByteStream stream) {
    }

    public void decode(ByteStream stream) {
        int size = stream.readInt();

        for(int i = 0; i < size; ++i) {
            Long avid = Long.valueOf(stream.readLong().longValue());
            String fbid = stream.readString();
            String avname = stream.readString();
            String gcid = stream.readString();
            this.infoList.add(new AvatarInfoListEntry(avid, fbid, avname, gcid));
        }

        this.isDecoded = true;
    }

    public List<AvatarInfoListEntry> getAvatarInfoList() {
        return this.infoList;
    }
}
